﻿using StructureMap.Configuration.DSL;
using ZSoftInstagram.DataAccess;
using ZSoftInstagram.DataAccess.Abstractions;
using ZSoftInstagram.Domain.Board;
using ZSoftInstagram.Services.Abstraction;
using ZSoftInstagram.Services.ImagePinProviders;

namespace ZSoftInstagram.UI.Web.Infrastructure.IOC.Registries
{
    public class ImagPinSuggestionService: Registry
    {
        public ImagPinSuggestionService()
        {
            this.For(typeof(IImagePinSuggestionProvider))
                  .Use(typeof(DefaultImagePinSuggestionProvider))
                    .Ctor<IRepository<ImagePin>>().Is(new SqlRepository<ImagePin>(new ApplicationDbContext()));
        }
    }
}
